package com.qt.stream;

import java.util.ArrayList;
import java.util.Collections;

/**
 * @Author zsf
 * @Date 2023/9/14 0:03
 * @Version 1.0
 */
public class StreamDemo05 {

    /**
     * 方法引用
     */
    public static void main(String[] args) {

        ArrayList<String> strings = new ArrayList<>();
        Collections.addAll(strings,"1","2","3","4","5");
        strings.stream()
                .map(Integer::parseInt)
                .forEach(s -> System.out.println(s));


    }

}
